package org.homebrewn.base;

import org.apache.wicket.PageParameters;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.homebrewn.draggable.DraggablePrototypesPage;
import org.odlabs.wiquery.ui.accordion.Accordion;

/**
 * Basepage 
 * @author smeenk
 *
 */
public class PrototypeBasePage extends WebPage{
    /**
	 * Constructor that is invoked when page is invoked without a session.
	 * 
	 * @param parameters
	 *            Page parameters
	 */
	public PrototypeBasePage() {
		addPageComponents();
    }
	
	
	protected void addPageComponents(){
		
		  add(new Label("message", "Prototype Project is up and running - please disable serialuid warnings in eclipse (preference and search for serialuid)"));
	      add(new AjaxLink<DraggablePrototypesPage>("DraggablePrototypesPage") {

				@Override
				public void onClick(AjaxRequestTarget target) {
					setResponsePage(DraggablePrototypesPage.class);
				}
	      });
	        
	      Accordion prototypesAccordion = new Accordion("prototypesAccordion");
	}
}
